import logging
from authkit.authorize.pylons_adaptors import authorize
from authkit.permissions import UserIn

from authentifications.lib.base import *

log = logging.getLogger(__name__)

class AdminController(BaseController):

    @authorize(UserIn(["admin"]))
    def index(self):
        # Return a rendered template
        #   return render('/some/template.mako')
        # or, Return a response
        return render("/admin.mako")
